package com.example.iotlink.service.impl;

import com.example.iotlink.bean.Receipt;
import com.example.iotlink.service.ITopicHandleStrategy;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class SyncReceiptHandleStrategy implements ITopicHandleStrategy {
    @Override
    public void handelReceiveTopic(Receipt receipt) {
//        System.err.println("设备同步" + receipt.getTopic());
        log.info("设备同步上报:{}", receipt);

    }
}
